<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"+"admin/";
request.setAttribute("url", request.getScheme()+"://"+request.getHeader("host")+request.getContextPath());
request.setAttribute("suburl", request.getRequestURL().substring(basePath.length()));
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%@ taglib prefix="s" uri="/struts-tags" %> 
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<title><s:property value="%{#application.webSite.title}"/> - 后台管理</title>
 
	<!-- The Main CSS File -->
	<link rel="stylesheet" href="CSS/style.css" />
	<!-- jQuery -->
	<script src="Javascript/jQuery/jquery-1.7.2.min.js"></script>
	<!-- Flot -->
	<script src="Javascript/Flot/jquery.flot.js"></script>
	<script src="Javascript/Flot/jquery.flot.resize.js"></script>
	<script src="Javascript/Flot/jquery.flot.pie.js"></script>
	<!-- DataTables -->
	<script src="Javascript/DataTables/jquery.dataTables.min.js"></script>
	<!-- ColResizable -->
	<script src="Javascript/ColResizable/colResizable-1.3.js"></script>
	<!-- jQuryUI -->
	<script src="Javascript/jQueryUI/jquery-ui-1.8.21.min.js"></script>
	<!-- Uniform -->
	<script src="Javascript/Uniform/jquery.uniform.js"></script>
	<!-- Tipsy -->
	<script src="Javascript/Tipsy/jquery.tipsy.js"></script>
	<!-- Elastic -->
	<script src="Javascript/Elastic/jquery.elastic.js"></script>
	<!-- ColorPicker -->
	<script src="Javascript/ColorPicker/colorpicker.js"></script>
	<!-- SuperTextarea -->
	<script src="Javascript/SuperTextarea/jquery.supertextarea.min.js"></script>
	<!-- UISpinner -->
	<script src="Javascript/UISpinner/ui.spinner.js"></script>
	<!-- MaskedInput -->
	<script src="Javascript/MaskedInput/jquery.maskedinput-1.3.js"></script>
	<!-- ClEditor -->
	<script src="Javascript/ClEditor/jquery.cleditor.js"></script>
	<!-- Full Calendar -->
	<script src="Javascript/FullCalendar/fullcalendar.js"></script>
	<!-- Color Box -->
	<script src="Javascript/ColorBox/jquery.colorbox.js"></script>
	<!-- Kanrisha Script -->
	<script src="Javascript/kanrisha.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
	<!-- Change Pattern -->
	<div class="changePattern">
		<span id="pattern1"></span>
		<span id="pattern2"></span>
		<span id="pattern3"></span>
		<span id="pattern4"></span>
		<span id="pattern5"></span>
		<span id="pattern6"></span>
	</div>
	<!-- Top Panel -->
	<div class="top_panel">
		<div class="wrapper">
			<div class="user">
				<img src="Images/user_avatar.png" alt="user_avatar" class="user_avatar" />
				<span class="label"><s:property value="%{#session.adminMsg.userName}"/></span>
				<!-- Top Tooltip -->
				<div class="top_tooltip">
					<div>
						<ul class="user_options">
							<li class="i_16_profile"><a href="#" title="Profile"></a></li>
							<li class="i_16_tasks"><a href="#" title="Tasks"></a></li>
							<li class="i_16_notes"><a href="#" title="Notes"></a></li>
							<li class="i_16_options"><a href="#" title="Options"></a></li>
							<li class="i_16_logout"><a href="logout" title="Log-Out"></a></li>
						</ul>
					</div>
				</div>
			</div>
			<div class="top_links">
				<ul>
					<li class="i_22_search search_icon">
						<div class="top_tooltip right_direction">
							<div>
								<form class="top_search_form" >
									<input type="text" class="top_search_input" />
									<input type="submit" class="top_search_submit" value="" />
								</form>
							</div>
						</div>
					</li>
					<li class="i_22_settings">
						<a href="#" title="Settings">
							<span class="label">Settings</span>
						</a>
					</li>
				</ul>
			</div>
		</div>
	</div>

	<header class="main_header">
		<div class="wrapper">
			<div class="logo">
				<h1><s:property value="%{#application.webSite.title}"/></h1>
			</div>
		</div>
	</header>
	<div class="wrapper small_menu">
		<ul class="menu_small_buttons">
			<li><a title="General Info" class="i_22_dashboard smActive" href="index.html"></a></li>
			<li><a title="Your Messages" class="i_22_inbox" href="inbox.html"></a></li>
			<li><a title="Visual Data" class="i_22_charts" href="charts.html"></a></li>
			<li><a title="Kit elements" class="i_22_ui" href="ui.html"></a></li>
			<li><a title="Some Rows" class="i_22_tables" href="tables.html"></a></li>
			<li><a title="Some Fields" class="i_22_forms" href="forms.html"></a></li>
		</ul>
	</div>
	
	<div class="wrapper contents_wrapper">
		<aside class="sidebar">
			<ul class="tab_nav">
				<li class='<c:if test="${'index.jsp'==suburl}">active_tab</c:if> i_32_dashboard'>
					<a href="index.jsp" title="General Info">
						<span class="tab_label">主控制</span>
						<span class="tab_info">面板</span>
					</a>
				</li>
				
				<s:if test="%{#session.adminMsg.adminRight==0}">
				<li class="<c:if test="${'article.jsp'==suburl}">active_tab</c:if> i_32_inbox">
					<a href="article.jsp" title="文章管理">
						<span class="tab_label">文章</span>
						<span class="tab_info">管理</span>
					</a>
				</li>
				<li class="<c:if test="${'comment.jsp'==suburl}">active_tab</c:if> i_32_charts">
					<a href="comment.jsp" title="评论管理">
						<span class="tab_label">评论</span>
						<span class="tab_info">管理</span>
					</a>
				</li>
				<li class="<c:if test="${'blog.jsp'==suburl}">active_tab</c:if> i_32_ui">
					<a href="blog.jsp" title="Kit elements">
						<span class="tab_label">博客</span>
						<span class="tab_info">管理</span>
					</a>
				</li>
				<li class="<c:if test="${'website.jsp'==suburl}">active_tab</c:if> i_32_forms">
					<a href="website.jsp" title="Some Rows">
						<span class="tab_label">网站</span>
						<span class="tab_info">配置</span>
					</a>
				</li>
				<li class="<c:if test="${'user.jsp'==suburl}">active_tab</c:if> i_32_tables">
					<a href="user.jsp" title="Some Fields">
						<span class="tab_label">会员管理</span>
						<span class="tab_info">管理</span>
					</a>
				</li>
				</s:if>
				<s:elseif test="%{#session.adminMsg.adminRight==1}">
					<li class="<c:if test="${'edit.jsp'==suburl}">active_tab</c:if> i_32_tables">
					<a href="edit.jsp" title="Some Fields">
						<span class="tab_label">资讯</span>
						<span class="tab_info">添加</span>
					</a>
				</li>
				</s:elseif>
			</ul>
		</aside>

